home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmCreateSimplePopupMenu.z / XmCreateSimplePopupMenu
Encoding:
Text File  |  2003-11-18  |  4.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVVXXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_C_r_e_a_t_e_S_i_m_p_l_e_P_o_p_u_p_M_e_n_u - A RowColumn    widget convenience
  10.       creation function
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/RowColumn.h>
  14.  
  15.       Widget XmCreateSimplePopupMenu (ppppaaaarrrreeeennnntttt,,,, nnnnaaaammmmeeee,,,,    aaaarrrrgggglllliiiisssstttt,,,, aaaarrrrggggccccoooouuuunnnntttt)
  16.            _W_i_d_g_e_t     ppppaaaarrrreeeennnntttt;
  17.            _S_t_r_i_n_g     nnnnaaaammmmeeee;
  18.            _A_r_g_L_i_s_t     aaaarrrrgggglllliiiisssstttt;
  19.            _C_a_r_d_i_n_a_l     aaaarrrrggggccccoooouuuunnnntttt;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_C_r_e_a_t_e_S_i_m_p_l_e_P_o_p_u_p_M_e_n_u creates an instance of a RowColumn
  23.       widget of type _X_m_M_E_N_U__P_O_P_U_P and returns the associated
  24.       widget ID.
  25.  
  26.       This routine creates a Popup MenuPane    and its    button
  27.       children.  The name of each button is    button_nnnn, where    nnnn is
  28.       an integer from 0 to one minus the number of buttons in the
  29.       menu.     The name of each separator is separator_nnnn, where nnnn is
  30.       an integer from 0 to one minus the number of separators in
  31.       the menu.  The name of each title is label_nnnn,    where nnnn    is an
  32.       integer from 0 to one    minus the number of titles in the
  33.       menu.     Buttons, separators, and titles are named and created
  34.       in the order in which    they are specified in the RowColumn
  35.       simple menu creation resources supplied in the argument
  36.       list.
  37.  
  38.       ppppaaaarrrreeeennnntttt
  39.            Specifies the widget ID of the parent of    the MenuShell
  40.  
  41.       nnnnaaaammmmeeee Specifies the name of the created widget
  42.  
  43.       aaaarrrrgggglllliiiisssstttt
  44.            Specifies the argument list
  45.  
  46.       aaaarrrrggggccccoooouuuunnnntttt
  47.            Specifies the number of attribute/value pairs in    the
  48.            argument    list (aaaarrrrgggglllliiiisssstttt)
  49.  
  50.       A number of resources    exist specifically for use with    this
  51.       and other simple menu    creation routines.  The    only button
  52.       types    allowed    in the _X_m_N_b_u_t_t_o_n_T_y_p_e resource are
  53.       _X_m_C_A_S_C_A_D_E_B_U_T_T_O_N, _X_m_P_U_S_H_B_U_T_T_O_N, _X_m_R_A_D_I_O_B_U_T_T_O_N,    _X_m_C_H_E_C_K_B_U_T_T_O_N,
  54.       _X_m_T_I_T_L_E, _X_m_S_E_P_A_R_A_T_O_R,    and _X_m_D_O_U_B_L_E__S_E_P_A_R_A_T_O_R.     For a
  55.       complete definition of RowColumn and its associated
  56.       resources, see _X_m_R_o_w_C_o_l_u_m_n(_3_X).
  57.  
  58.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  59.       Returns the RowColumn    widget ID.
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVVXXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))
  71.  
  72.  
  73.  
  74.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  75.       _X_m_C_r_e_a_t_e_P_o_p_u_p_M_e_n_u(_3_X), _X_m_C_r_e_a_t_e_R_o_w_C_o_l_u_m_n(_3_X),
  76.       _X_m_R_o_w_C_o_l_u_m_n(_3_X), and _X_m_V_a_C_r_e_a_t_e_S_i_m_p_l_e_P_o_p_u_p_M_e_n_u(_3_X).
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.